<include file="Public:header" />
<include file="Public:left" />
	<form action="" method="post" enctype="multipart/form-data" id="brandForm">
	<input type="hidden" name="id" value="{$user_find.id}"/>
     <section>
      <h2><strong>编辑</strong></h2>
      <ul class="ulColumn2">
       <li>
        <span class="item_name" style="width:120px;">账号名：</span>
        <input type="text" value="{$user_find.username}" disabled="disabled"   class="textbox textbox_295" name="username" id="account"/>
       </li>

       <li>
        <span class="item_name" style="width:120px;">注册时间：</span>
        <input type="text" value="{$user_find.create_time}" disabled="disabled"   class="textbox textbox_295" name="create_time" id="account"/>
       </li>

       <li>
        <span class="item_name" style="width:120px;" >到期时间：</span>
        <input type="text" value="{$user_find.validity_time}" disabled="disabled"   class="textbox textbox_295" name="validity_time" id="account"/>
       </li>
		  
	   <li>
        <span class="item_name" style="width:120px;">账号等级：</span>
        <select name="member_authority" >
          <option value="0">请选择账号等级</option>
        	<volist name="member_authority" id="vo">
        	 <option value="{$vo.id}" <if condition="$vo.id eq $user_find.type">selected = "selected"</if>>{$vo.name}</option>
        	</volist>
        </select>
       </li>
          <li>
              <span class="item_name" style="width:120px;">真实姓名：</span>
              <input type="text" value="{$user_find.name}"    class="textbox textbox_295" name="name" id="name"/>
          </li>
          <li>
              <span class="item_name" style="width:120px;">公司：</span>
              <input type="text" value="{$user_find.company}"    class="textbox textbox_295" name="company" id="company"/>
          </li>
          <li>
              <span class="item_name" style="width:120px;">手机：</span>
              <input type="text" value="{$user_find.mobile}"    class="textbox textbox_295" name="mobile" id="mobile"/>
          </li>
          <li>
              <span class="item_name" style="width:120px;">密码：</span>
              <input type="password" value="{$user_find.passwd}"    class="textbox textbox_295" name="pwd" id="pwd"/>
          </li>
       <li>
        <span class="item_name" style="width:120px;"></span>
        <input type="button" class="link_btn" value="提交"/>
       </li>
      </ul>
     </section>
	 </form>

     <!--tabStyle-->
     <script type="text/javascript">
      $(".link_btn").click(function(){
          var id = $("input[name='id']").val();
          var name = $("input[name='name']").val();
          var company = $("input[name='company']").val();
          var mobile = $("input[name='mobile']").val();
          var passwd = $("input[name='pwd']").val();
          var member_authority = $("select[name='member_authority']").val();

          $.post("{:url('User/edit_user_do')}",{id:id,name:name,company:company,mobile:mobile,passwd:passwd,member_authority:member_authority},function(result){
            if(result.code == '0'){
                layer.alert(result.msg);
            }else{
                layer.alert(result.msg, {   
                    btn: ['确定']  
                },  
                    function (index, item) { 
                    location.href = result.url;
                });  
            }
          });
      });
      
     </script>

 </div>
</section>
</body>
</html>
